﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static AutoMail.Enums.ComponentEnums;

namespace AutoMail.Models
{
    public class EmailJob
    {
        public int? Id { get; set; }
        [Display(Name ="Staff Name")]
        [Required]
        public string StaffName { get; set; }
        [EnumDataType(typeof(ESex))]
        public byte? Sex { get; set; }
        [DataType(DataType.Date)]
        [Required]
        public DateTime? BirthDay { get; set; }
        [DataType(DataType.EmailAddress)]
        [Required]
        public string Email { get; set; }
        [Display(Name = "Email Body"), DataType(DataType.MultilineText)]
        public string EmailBody { get; set; }
        [DataType(DataType.Date)]
        [Display(Name = "Come To Company Date")]
        [Required]
        public DateTime? ComeToCompanyDate { get; set; }
    }
}
